package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.incoicings.vo.SupplierVo;
import com.spark.invoicings.entity.ProcuredSupplier;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ProcuredSupplierMapper extends BaseMapper<ProcuredSupplier> {

    /**
     * 查询所有供应商
     * @param map
     * @return
     */
    List<ProcuredSupplier> selectSupplierAll(Map<String, Object> map);

    /**
     * 根据供应商id获取字典供应商分级和合作状态
     * @param sId
     * @return
     */
    SupplierVo selectSupplierVo(Integer sId);

}
